package tgc.rj.zz.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import tgc.rj.zz.custom.CommonRepository;
import tgc.rj.zz.entity.Tbdept;

@Repository
public interface DeptRepository extends CommonRepository<Tbdept, Integer>{

	public List<Tbdept> findByParentIsNull();

	public List<Tbdept> findByParentId(Integer id);

}
